package cn.edu.usst.cs.goldfish.booking.meetingroom.service;

import cn.edu.usst.cs.goldfish.booking.meetingroom.model.SysUser;
import cn.edu.usst.cs.goldfish.booking.meetingroom.web.dto.auth.UserPreview;

public interface UserService {
    SysUser findByCredential(String credential);

    long sendCaptcha(UserPreview userPreview);

    void ensureEmailNotTaken(String email);

    void ensureNicknameNotTaken(String nickname);

    void createUserFromPreview(UserPreview preview);

    String findEmailByIdentifier(String identifier);

}
